
interface Compute{
    int sum();
    int max();
}
public class ComputeClass implements Compute {
    private int a;
    private int b;

    public ComputeClass(int a, int b) {
        this.a = a;
        this.b = b;
    }

    @Override
    public int sum() {
        return a + b;
    }

    @Override
    public int max() {
        return a > b ? a : b;
    }
}
